export const local_components_for_router = {
  'fp_setting.action_user': () => import('@/fapiao_ui/fp_setting/action_user'),

  'fapiao.action_in_fapiao': () =>
    import('@/fapiao_ui/fapiao/action_in_fapiao'),
  'fapiao.action_in_refund': () =>
    import('@/fapiao_ui/fapiao/action_in_refund'),
  'fapiao.action_out_fapiao': () =>
    import('@/fapiao_ui/fapiao/action_out_fapiao'),
  'fapiao.action_out_refund': () =>
    import('@/fapiao_ui/fapiao/action_out_refund'),

  'fp_sale.action_fp_sale_order': () =>
    import('@/fapiao_ui/fp_sale/action_fp_sale_order/action_fp_sale_order'),

  'fp_sale.action_fp_ods_sale_order': () =>
    import(
      '@/fapiao_ui/fp_sale/action_fp_ods_sale_order/action_fp_ods_sale_order'
    ),

  'fp_sale.action_fp_nc_ods_sale_order': () =>
    import(
      '@/fapiao_ui/fp_sale/action_fp_nc_ods_sale_order/action_fp_nc_ods_sale_order'
    )

  // 'fp_sale.action_fp_sale_order': () =>
  //   import('@/fapiao_ui/fp_sale/action_sale_order')
}

export const local_menus_tree = [
  // {
  //   id: 'test',
  //   icon: 'shopping',
  //   theme: 'twoTone',
  //   name: '测试用菜单',
  //   children: [
  //     {
  //       action: 'base.action_country',
  //       id: 'base.action_country',
  //       icon: 'shopping',
  //       theme: 'twoTone',
  //       name: '国家'
  //     },

  //     {
  //       action: 'base.action_country_group',
  //       id: 'base.action_country_group',
  //       icon: 'shopping',
  //       theme: 'twoTone',
  //       name: '国家组'
  //     }
  //   ]
  // },
  {
    id: 'fp_in_fapiao',
    icon: 'shopping',
    theme: 'twoTone',
    name: '进项发票管理',
    children: [
      {
        action: 'fapiao.action_in_fapiao',
        id: 'fp_in_fapiao.menu_action_in_fapiao',
        icon: 'shopping',
        theme: 'twoTone',
        name: '进项蓝票'
      },
      {
        action: 'fapiao.action_in_refund',
        id: 'fp_in_fapiao.menu_action_in_refund',
        icon: 'shopping',
        theme: 'twoTone',
        name: '进项红票'
      }
    ]
  },
  {
    id: 'fp_out_fapiao',
    icon: 'shopping',
    theme: 'twoTone',
    name: '销项发票管理',

    children: [
      {
        action: 'fapiao.action_out_fapiao',
        id: 'fp_out_fapiao.menu_action_out_fapiao',
        icon: 'shopping',
        theme: 'twoTone',
        name: '销项蓝票'
      },
      {
        action: 'fapiao.action_out_refund',
        id: 'fp_out_fapiao.menu_action_out_refund',
        icon: 'shopping',
        theme: 'twoTone',
        name: '销项红票'
      }
    ]
  },

  {
    id: 'fp_sale',
    icon: 'shopping',
    theme: 'twoTone',
    name: '销售管理',

    children: [
      {
        action: 'fp_sale.action_fp_sale_order',
        id: 'fp_sale.menu_action_fp_sale',
        icon: 'shopping',
        theme: 'twoTone',
        name: '销售订单'
      },
      {
        action: 'fp_sale.action_fp_ods_sale_order',
        id: 'fp_sale.menu_action_fp_ods_sale_order',
        icon: 'shopping',
        theme: 'twoTone',
        name: 'NC原始单据'
      },

      {
        action: 'fp_sale.action_fp_nc_ods_sale_order',
        id: 'fp_sale.menu_action_fp_nc_ods_sale_order',
        icon: 'shopping',
        theme: 'twoTone',
        name: 'NC导入数据'
      }

      // {
      //   action: 'fp_sale.action_sale_order',
      //   id: 'fp_sale.menu_action_sale',
      //   icon: 'shopping',
      //   theme: 'twoTone',
      //   name: '销售订单1'
      // }
    ]
  },

  {
    id: 'fp_product',
    icon: 'shopping',
    theme: 'twoTone',
    name: '商品管理',
    children: [
      {
        action: 'fp_product.action_product',
        id: 'fp_product.menu_product',
        icon: 'shopping',
        theme: 'twoTone',
        name: '商品管理'
      },

      {
        action: 'fp_product.action_product_category',
        id: 'fp_product.menu_product_category',
        icon: 'shopping',
        theme: 'twoTone',
        name: '开票商品类别'
      },

      {
        action: 'fp_product.action_nc_product',
        id: 'fp_product.menu_action_nc_product',
        icon: 'shopping',
        theme: 'twoTone',
        name: 'NC商品管理'
      }
    ]
  },

  {
    id: 'fp_partner',
    icon: 'shopping',
    theme: 'twoTone',
    name: '客户管理',
    children: [
      {
        action: 'fp_partner.action_partner',
        id: 'fp_partner.menu_partner',
        icon: 'shopping',
        theme: 'twoTone',
        name: '开票客户管理'
      },
      {
        action: 'fp_partner.action_partner_category',
        id: 'fp_partner.menu_action_partner_category',
        icon: 'shopping',
        theme: 'twoTone',
        name: '客户标签管理'
      },
      {
        action: 'fp_partner.action_nc_partner',
        id: 'fp_partner.menu_action_nc_partner',
        icon: 'shopping',
        theme: 'twoTone',
        name: 'NC客户'
      }
    ]
  },

  {
    id: 'fp_setting',
    icon: 'shopping',
    theme: 'twoTone',
    name: '系统设置',
    children: [
      {
        action: 'fp_setting.action_company',
        id: 'fp_setting.menu_action_company',
        icon: 'shopping',
        theme: 'twoTone',
        name: '公司'
      },

      {
        action: 'fp_setting.action_taxmachine',
        id: 'fp_setting.menu_action_taxmachine',
        icon: 'shopping',
        theme: 'twoTone',
        name: '税控设备'
      },

      {
        action: 'fp_setting.action_user',
        id: 'fp_setting.menu_action_user',
        icon: 'shopping',
        theme: 'twoTone',
        name: '用户'
      },
      {
        action: 'fp_setting.action_taxpayer_category',
        id: 'fp_setting.menu_action_taxpayer_category',
        icon: 'shopping',
        theme: 'twoTone',
        name: '纳税人类型'
      },
      {
        action: 'fp_setting.action_tax',
        id: 'fp_setting.menu_action_tax',
        icon: 'shopping',
        theme: 'twoTone',
        name: '税率'
      },
      {
        action: 'fp_setting.action_allinone_product',
        id: 'fp_setting.menu_action_allinone_product',
        icon: 'shopping',
        theme: 'twoTone',
        name: '合并开票商品'
      },

      {
        action: 'fp_setting.action_sale_split_product',
        id: 'fp_setting.menu_action_sale_split_product',
        icon: 'shopping',
        theme: 'twoTone',
        name: '合并开票设置'
      },
      {
        action: 'fp_setting.action_sale_split_group',
        id: 'fp_setting.menu_action_sale_split_group',
        icon: 'shopping',
        theme: 'twoTone',
        name: '开票规则分组设置'
      },
      {
        action: 'fp_setting.action_sale_split',
        id: 'fp_setting.menu_action_sale_split',
        icon: 'shopping',
        theme: 'twoTone',
        name: '开票规则'
      }
    ]
  }
]
